if __name__ == '__main__':
    list = [{"name": 1, "text": "111"}, {"name": 2, "text": "222"}]
    new_list = [{"name": 1, "text": "111"}, {"name": 1, "text": "112"}, {"name": 3, "text": "333"}]
    list = list + new_list
    dict = {}
    for i in list:
        dict[i['name']] = i['text']
    print(dict)
    res_list = []
    key_list = [i for i in dict.keys()]
    for i in key_list:
        res_list.append({"name": i, "text": dict[i]})
    print(res_list)
